package com.it.cloud.provider.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.it.cloud.provider.dao.UserDao;
import com.it.cloud.provider.entity.User;

@RestController
public class UserController {
	@Autowired
	private UserDao userDao;
	@GetMapping("/simple/{id}")
	public User findById(@PathVariable Long id){
		return this.userDao.findOne(id);
	}
}
